
const app = {
  pre : function (midcall, group) {

  },
  router : {
    map : (methods, path, callback, group) => {

    }
  }
}

const dproxy = require('../proxy')

let proxy = new dproxy({
  host : {
    'a.com' : [
      {
        path : '/x',
        url : 'http://localhost:1234'
      },
      {
        path : '/y',
        url : 'http://localhost:1235'
      }
    ]
  }
})

proxy.init(app)

console.log('ok')
